<?php
defined('BASEPATH') OR exit('No direct script access allowed');


use QCloud_WeApp_SDK\Mysql\Mysql as DB;


class PayDetail extends CI_Controller
{

    public function index()
    {
        $ordernum = $_POST['ordernum'];
        $userid = $_POST['userid'];

        $rows = DB::row('cc_pay_sucess',['*'], ['ordernum' => $ordernum, 'userid' => $userid]);


        if (!empty($rows)) {
            $this->json([
                'code' => 0,
                'data' => $rows
            ]);
        } else {
            $this->json([
                'code' => -1,
                'error' => $rows['error']
            ]);
        }
    }
}
